package com.filepublic.demo.server.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;

public interface AsyncService {

    /**
     * 异步发送验证码
     * @param emailUser
     */
    void sendEmail(String emailUser);

    /**
     * 异步保存文件
     * @param file
     * @param saveFilePath
     */
    void saveFile(MultipartFile file, File saveFilePath) throws IOException;

}
